Fixed a bunch of bytestring issues.
Fixed import error for the Queue stdlib.
Fixed issues with exception handling.
Fixed import error.
Fixed the usage of the print statement.
Fixed bug with string handling for python2.
Replaced file statement with open.
dict.has_key was removed in 3.1, use the in operator instead.
Merge pull request #17 from lmas/python3

Begun work on #6 support for Python3