updated python bindings accordingly