def setitem_via_sibseqs(ol,value,*sibseqs):
    '''
        from elist.elist import *
        y = ['a',['b',["bb"]],'c']
        y[1][1]
        setitem_via_sibseqs(y,"500",1,1)
        y
    '''
    this = ol
    pathlist = list(sibseqs)
    for i in range(0,pathlist.__len__()-1):
        key = pathlist[i]
        this = this.__getitem__(key)
    this.__setitem__(pathlist[-1],value)
    return(ol)
def setitem_via_sibseqs(ol,value,*sibseqs):
    '''
        from elist.elist import *
        y = ['a',['b',["bb"]],'c']
        y[1][1]
        setitem_via_sibseqs(y,"500",1,1)
        y
    '''
    this = ol
    pathlist = list(sibseqs)
    for i in range(0,pathlist.__len__()-1):
        key = pathlist[i]
        this = this.__getitem__(key)
    this.__setitem__(pathlist[-1],value)
    return(ol)
def setitem_via_sibseqs ( ol , value , * sibseqs ) : this = ol pathlist = list ( sibseqs ) for i in range ( 0 , pathlist . __len__ ( ) - 1 ) : key = pathlist [ i ] this = this . __getitem__ ( key ) this . __setitem__ ( pathlist [ - 1 ] , value ) return ( ol )
from elist.elist import *
        y = ['a',['b',["bb"]],'c']
        y[1][1]
        setitem_via_sibseqs(y,"500",1,1)
        y
from elist . elist import * y = [ a [ b [ bb ]] c ] y [ 1 ] [ 1 ] setitem_via_sibseqs ( y 500 1 1 ) y