https://docs.scipy.org/doc/scipy-0.15.1/reference/generated/scipy.signal.convolve2d.html ?
than tell me what kind of bot is he trying to implement?
Are you fitting the data or the residual errors?
are you insane??