def get_index_of_last_match(obj, li):
    """Get index of last item matching obj in list"""
    # start end step, start inclusive - end not
    for i in range(len(li) - 1, -1, -1):
        if obj == li[i]:
            return i