Work around a 2to3 bug. PYTHON-494