Fix test_testsuite.py for Py3