Updated the Python interface of the parser.
There are now more functions for the different types. This allows to better control it from Python.