fixed bug with qt / pylab event loop
merged