Convolution Code In Python For Games