Fixing imports so that doctests can run without pylab
Fixing imports so that doctests can run without pyglet