Dictionaries need to be iterated over with items()