porting to pyglet and python3, unittests for event loop and other stuff - woot