added pylab support