Fixes
Merge pull request #2 from drozdovsky/master

Fixed for Python 3 compatibility