Python Code Execution Diagram