Python 3 compatibility patch provided.
A less dirty Python 3 compatibility tweak.
Merge pull request #3 from moigagoo/master

Python 3 compatibility patch provided.