minor changes for python bindings