Ported to Python 3
Merge pull request #14 from acrellin/py2to3

Port to Python 3