further changes to Python bindings