python3 [DO NOT MERGE]

Hi there, 

I've created a python3 version of your code. I've gotten it working so far with only a few changes. The only problem is that this code will not work on python2. There wasn't much to change, and I can easily add some checks so that one function will be called in place of another but I wasn't sure if you'd like a branch for each version or one branch that worked on both. If you prefer the latter I can quickly add this functionality, with the only caveat being that the script will only work on python version 2.6 and up.

Lastly, the tests.py file does not seem to work for me in either python2 or 3. If you have this same issue please let me know.