Automatic Execution For Python Loop