def get_att_index(poly, att):
    """Returns index of given attribute if found"""
    j = 0
    if isinstance(poly[2], type(None)):
        return None
    for _att in poly[2]:
        if _att[0] == att[0]:
            return j
        j += 1
    return None