fix more python3.4 incompatibilities