Don't do a "from scipy import *" if pylab is not available. This would import functions such as `sqrt` that do not properly deal with units (in contrast to numpy's ufuncs). Instead, do all the non-matplotlib imports that pylab does manually.