fixed python bindings