code: def Search(self,key):
  		
  
  		results = []
  		for alert in self.alerts:
  			if alert.id.lower().find(key.lower()) != -1:  results.append(alert)
  			elif alert.name.lower().find(key.lower()) != -1:  results.append(alert)
  
  		return(results)
docs: Search alert list by providing partial name, ID, or other key.