Python Loop Through Specific Performance Legal Definition