def search_list(l, k, v):
    """Search a list for an entry with a specific value."""
    for item in l:
        if k not in item:
            continue
        if item[k] == v:
            return item
    return None