Corrected typos affecting python 3.x compatibility.
Merge pull request #17 from HapeMask/py3x-fixes

Corrected typos affecting python 3.x compatibility.