Upgrade to Python 3 while still being compatible with Python 2

As in #5, I need Python 3 support. Doesn't look like that PR is going anywhere though now, so this patch adds Python 3 support, while also still working in Python 2.

Tested with Python 3.3.3 and Python 2.7.3, happily sends messages and reads the list of rooms for me in both.