def find_index_list(inputlist, key):
    """get a list of index for key in inputlist"""
    start = 0
    indexlist = []
    while 1:
        try:
            index = inputlist.index(key, start)
        except:
            break
        indexlist.append(index)
        start = index + 1
    return indexlist