Python3 compatibility

continuation of the action #21
Merge pull request #36 from stonebig/patch-1

Python3 compatibility