code: def setSubDelegates(self, namelist, before=None, after=None):
          
          if len(namelist) > 1:
              def set_sub(i):
                  i.setSubDelegates(namelist[1:], before, after)
              self.setBeforeDelegate(namelist[0], set_sub)
          elif len(namelist) == 1:
              self.setDelegate(namelist[0], before, after)
docs: Set a delegate for a sub-sub-item, according to a list of names