Merge pull request #3 from fs0/master

Python 3 compatibility added by fs0