Python Function Modify Input Processing Output Flowchart