'Interpret a list of PILDriver commands.'

def execute(self, list):

    list.reverse()
    while (len(list) > 0):
        self.push(list[0])
        list = list[1:]
        if self.verbose:
            print(('Stack:    ' + repr(self.stack)))
        top = self.top()
        if (not isinstance(top, str)):
            continue
        funcname = ('do_' + top)
        if (not hasattr(self, funcname)):
            continue
        else:
            self.do_pop()
            func = getattr(self, funcname)
            func()
