Be Python 3 compatible.
Merge pull request #3 from untitaker/py3

Be Python 3 compatible.