code: def Handle_Search(self, msg):
          
  
          search_term = msg['object']['searchTerm']
          results = self.db.searchForItem(search_term)
  
          reply = {"status": "OK",
                   "type": "search",
                   "object": {
                             "received search": msg['object']['searchTerm'],
                             "results": results}
                   }
  
          return json.dumps(reply)
docs: Handle a search.
  
          :param msg: the received search
          :type msg: dict
          :returns: The message to reply with
          :rtype: str