def dedupe(items:list) -> list:
    """
    Removes duplicates from a list.
    This preserves the order of the list.
    """
    reduced = []
    for item in items:
        if not item in reduced:
            reduced.append(item)
    return reduced