How to Create a List of Dictionaries in Python and Save It in a JSON File