Make tests pass on Python 3 and Python 2.7+

They're not even allowed failures in Travis ;)