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
Cleaned up the base64 bytestring juggling.

--HG--
extra : amend_source : 93166609138bcd5abe68f1e16930df20790878f5
Merged the python3 branch, fixing #6.

--HG--
extra : amend_source : 11f302bde03a0d4c0ca92bfc978814c10412e0c1