Python 2/3 bilingual support

Fixes Python3 incompatibilities in a way that should preserve Python2 support.

I also updated travis settings to only test py27 and py33 and it not requires py33 to pass.