code: def resolve(self, ts):
          
          if isinstance(ts, six.string_types):
              ts = [ts]
  
          obj = self
          while len(ts) > 0:
              t = ts.pop(0)
  
              if issubclass(obj.__class__, BaseObj):
                  obj = getattr(obj, t)
              elif isinstance(obj, list):
                  obj = obj[int(t)]
              elif isinstance(obj, dict):
                  obj = obj[t]
  
          return obj
docs: resolve a list of tokens to an child object
  
          :param list ts: list of tokens