from typing import List


def filter_list_of_dicts(l : List[dict], keys :list) -> List[dict]:
    """Filter dict keys in list of dictionaries.
    Args:
        l       : list of dicts
        filter  : name of keys to retain
    Returns:
        list : with filtered dicts
    """
    return [{k:v for k,v in x.items() if k in keys} for x in l]