<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_first_tag(tags, entity_type, after_index=-1):
 """Searches tags for entity type after given index Args: tags(list):
 a list of tags with entity types to be compaired too entity_type entity_type(str):
 This is he entity type to be looking for in tags after_index(int):
 the start token must be greaterthan this. Returns: ( tag, v, confidence ):
 tag(str):
 is the tag that matched v(str):
 ? the word that matched? confidence(float):
 is a mesure of accuacy. 1 is full confidence and 0 is none. """

    for tag in tags:
        for entity in tag.get('entities'):
            for v, t in entity.get('data'):
                if t.lower() == entity_type.lower() and tag.get('start_token', 0) > after_index:
                    return tag, v, entity.get('confidence')

    return None, None, None