Fix python3 compatibility
Merge pull request #212 from Ristovski/master

Fix python3 compatibility