Fix Python 3 compatibility
Merge pull request #54 from ronnix/python3compat

Fix Python 3 compatibility