Made some changes for python 3 compability:
- print needs brackets now
- Exception as exception instead of Exception, exception
- basestring does not exist anymore