code: def get_instance(attr, value):
          
          for i in list(BrowserView.instances.values()):
              try:
                  if getattr(i, attr) == value:
                      return i
              except AttributeError:
                  break
  
          return None
docs: Return a BrowserView instance by the :value of its given :attribute,
          and None if no match is found.