Move the pure python implementation into a pure-python file (no pyx)