Fix a bad import for python 3.3+.

This also re-enables tox and travis.