Some python 3 compatibility
Merge pull request #3 from meshy/patch-1

Some python 3 compatibility