Fix for Python 3
Merge pull request #1 from lgautier/patch-1

Fix for Python 3