How to iterate over a list of dictionaries in Python