Convolution Using Sqlite In Python