first version of the python binding