Initial work to get a python interface, non working so far