fixed Pipeline.py with constructor