Added imports for nest and pylab