def unzip_dict(list_of_dicts):
    """
    Converts a list of dictionaries to a dictionary of lists.

    Useful to transform the outcomes of a simulation
    """
    return {key: [d[key] for d in list_of_dicts] for key in list_of_dicts[0]}