Updated comments and added dedupe_list_of_dictionaries def