Python 3 compatibility
Merge pull request #3 from richo/features/py3-compat

Python 3 compatibility