def hop_element_idx(lst):
    """Search through xml, find index of Element with tag 'order' or 'hops'."""
    for idx, element in enumerate(lst):
        if element.tag == "order" or element.tag == "hops":
            return idx
    return None