Adding event-loop pylab integration