def to_listlist(list_dict):
    """Converts a list-of-dicts to a list-of-lists.

    Ex: [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}] ---> [["a","b"],[1, 2],[3, 4]]

    Args:
        list_dict (<list<dict>>): A list of dictionaries. Ex: [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}]

    Returns:
        <list<list>>: list-of-lists. Ex: [['a','b'], [1, 2], [3, 4]]
    """

    # Get headers
    headers = [key for key in list_dict[0]]
    table = [headers]   # append headers

    # Get data
    for dct in list_dict:
        # Store values in temporary list
        temp_lst = []

        # Fetch values inside dictionary
        for ikey in dct:
            temp_lst.append(dct[ikey])

        # Add tempt list to table container
        table.append(temp_lst)

    return table