move pylab initialization