Fix zip() and xrange() for Python 3
Fix print statement for Python 3
Fix type checks for Python 3
Run Travis tests on Python 3