Move c implementation to src/
Create a Python implementation at root: petools.py