Python Automatically Create Flowchart