Added Python 3 support.

That's all for Python 3. That's pretty less.
This line is just a forgotten debug print. You could remove it completely.