Python Loop Through Specific Performance Law