Tests fail on Python 3