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