Initial implementation of python bindings