- removed long literals (L) since int and long are unified in python 3
  (see pep 237)
changed remaining print statements to functions for python 3
- updated to comply with python 3's raise syntax
- StrinIO has been renamed io.StringIO in python 3
- correction, StringIO has been relocated to the io module
- correctly decoded strings to bytes