Try to make tests work on Python 3.x.