Fix imports: remove pylab and unused imports