def dict_of_lists_to_list_of_dicts(dl):
    """
    Thanks to Andrew Floren from https://stackoverflow.com/a/33046935/142712
    :param dl: dict of lists
    :return: list of dicts
    """
    return [dict(zip(dl, t)) for t in zip(*dl.values())]