Make py3 compatible.
Merge pull request #6 from farvour/master

Make py3 compatible.