made this work on python3
Merge pull request #1 from aki--aki/master

Python3 support