`--pylab` hasn't technically been deprecated, only single-hyphen.  Just remove the `and --pylab` part.