Python 3 compatibility.
Merge pull request #1 from sixohsix/py3_compat

Python 3 compatibility

Future proof. PEP8 compliant.