Fix the python3 tests.