Added mock, and improved set_mode to actually create the pyglet window and run the pyglet app