from typing import List
from typing import Dict


def listdict_to_dictlist(listdict: List[Dict]) -> Dict[str, List]:
    """Cleans up csv.DictReader, sorting columns as values with key as column header"""
    new_dict: Dict[str, List] = {}
    for d in listdict:
        for k, v in d.items():
            k = k.strip()
            v = v.strip()
            if k in new_dict:
                new_dict[k] = new_dict[k] + [v]
            else:
                new_dict[k] = [v]
    return new_dict