Python3 fix
Merge pull request #5 from nyurik/master

Fixed python3 issues