def setitem_via_pathlist(ol,value,pathlist):
this = ol<EOL>for i in range(<NUM_LIT:0>,pathlist.__len__()-<NUM_LIT:1>):<EOL><INDENT>key = pathlist[i]<EOL>this = this.__getitem__(key)<EOL><DEDENT>this.__setitem__(pathlist[-<NUM_LIT:1>],value)<EOL>return(ol)<EOL>
from elist.elist import *
y = ['a',['b',["bb"]],'c']
y[1][1]
setitem_via_pathlist(y,"500",[1,1])
y