Merge pull request #9 from RLovelett/python-3

Python 3 compatibility