Add Python implementation

This adds the Python implementation (currently underway).