def find(lst, key, value):
    """Find a dictionary entry from a list of dicts where the
    key identified by 'key' has the desired value 'value'."""
    for i, dic in enumerate(lst):
        if dic[key] == value:
            return i
    return None
