Python Code Generated from the workflow above