def __getitem__(self, key):
    if callable(key):
      return filter(key, self.children)
    else:
      t = key.__class__
      meth = t.__name__ % "__get%s__"
      if hasattr(self, meth):
        return getattr(self, meth)(key)
      else:
        raise KeyError(key)
dataset/ETHPy150Open tweetdeck/txAMQP/src/txamqp/xmlutil.py/Node.__getitem__/swapped operands of `%`