python3 compatibility

python3 compatibility
Merge pull request #1 from axce1/patch-1

python3 compatibility