Python End Code Command Typical Cycle