Make the module Python3 compatible.

Although it should run without change at least with python 2.7 as well.
Merge pull request #1 from mcepl/python3

Make the module Python3 compatible.