Make tests work on Python 3.