fixing pylab dependency problem