It shouldn't be an error. I'm collecting all the parts for all the assessments, and building a dictionary of lists, where the key is criterion name. If the criterion name is in scores, that means a 'part' from a different assessment already created and populate the list for that criterion name.

Either way, it sounds like this needs to be commented.