fix more py27-only assertions