moved the pylab inlines to avoid clobbering variables'