Added first version of Python code

Implemented about half of the methods so far