Fixes tests in Python 3.3