fix for Python 3x
Merge pull request #5 from smichr/8237

8237