This is a faulty implementation - as noted in the issues section of the original repo. Use the following repo instead. https://github.com/sbp894/normxcorr2sp
This is a Python 3.5 implementation of Matlab's normxcorr2 using scipy's fftconvolve and numpy.
Tested using:
scipy - 0.18.1 numpy - 1.13.1