fix more incompatibilities with the new Python interface