def list_to_dict(dicts):
    """ Convert a list of dictionaries to a dictionary of list """

    new_dict = dict()
    if isinstance(dicts, list):
        for key in dicts[0]:
            new_dict[key] = [d[key] for d in dicts]
        return new_dict