Performance Tuning Classes For Python Command To End Program