Update pipeline.py

Added makedir outdir.