Python 3

I'd like to help out with the Python 3 port. Here are a few changes including a couple to restore the Travis CI support so the failing tests can be observed in Travis CI.