make the tests pass on Python 3.