2to3 version of Pyglet