Change some lists to become dictionaries in the api.