removed pylab dependence
(#343)