code: def where(self, attrs, first=False):
          
  
          # from https://github.com/serkanyersen/underscore.py
          def by(val, *args):
              for key, value in attrs.items():
                  try:
                      if attrs[key] != val[key]:
                          return False
                  except KeyError:
                      return False
                  return True
  
          if first:
              return list(filter(by, self.children))[0]
          else:
              return list(filter(by, self.children))
docs: Return objects matching child objects properties.
  
          Parameters
          ----------
          attrs : dict
              tmux properties to match values of
  
          Returns
          -------
          list