for dic in mylist:
    for key, value in list(dic.items()):
        if key in mydic:
            mydic[key].append(value)
else:
    mydic[key] = [value]
How do I convert a list of dictionaries to a dictionary of lists in Python?