respect `pylab_import_all` when `--pylab` specified at the command-line

Earlier cleanup cleaned up a bit too much, ignoring this configurable.

should be backported to 1.x
Merge pull request #4056 from minrk/pylab_import_all

respect `pylab_import_all` when `--pylab` specified at the command-line