Python Loop Through Specific Performance Definition