Python 3 compatibility
Merge pull request #4 from Riamse/master

Python 3 support