Created a PYthon implementation with PLY