Python 2/3 changes.
Merge pull request #3 from vinnyrose/python3

Python 2/3 changes.