Fix Python bindings.