Make the debug code Python 2 compatible
Make the debug code Python 2 compatible

It will be converted to Python 3 with 2to3.

oktayacikalin/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,theblacklion/pyglet,theblacklion/pyglet