Add native Python 3 support

This adds Python 3 support without relying on 2to3. This allows for easier testing on Python 3.3. Note that I've re-enabled Python 3.3 on Travis CI, since it should work now.