Python 3 compatible
Merge pull request #5 from njl/master

Python 3 compatible