fix more py3 issues