def lod_lookup(lod: list, **kw):
    """Lookup in lod by attribute values.

    Args:

        lod (list): lod to be used

        **kw (dict): use keyword arguments.  keys are column names, their
                     value is attribute value

    Returns:

        list: first matching row
    """
    for row in lod:
        for k, v in kw.items():
            if row[k] != str(v):
                break
        else:
            return row
    return None
