Fix the tests for python3.