Python Shape Detection Flowchart