Decoded incoming data to unicode where relevant.
Added support for python3's changed standard library
Moved to python 2.6 style exception catching
Added conversion from python 3 dict_keys class to list.
Merge pull request #36 from bluepeppers/py3k

Added support for Python 3.x