def find_idx(words, idx):
    """
    Looks for the named index in the list. Test for the index name surrounded
    by quotes first, if it is not present then the error will return the index name without quotes
    """
    try:
        return words.index('"' + idx + '"')
    except ValueError:
        return words.index(idx)