Process Flow Diagram Python Code