properly cythonize the loops in _pythonpotential.pyx

needed to set decorator @cython.boundscheck(False)