Make Python 3 compatible.
Merge pull request #3 from larsyencken/features/python3

Make Python 3 compatible.