code: def Handle_Note(self, msg):
          
  
          note_text = msg['object']['note']
          note_tags = msg['object']['tags']
  
          if 'ID' in msg['object']:
              note_id = msg['object']['ID']
              self.db.addItem("note", {"note": note_text,
                                       "tags": note_tags},
                              note_id)
          else:
              note_id = self.db.addItem("note", {"note": note_text,
                                                 "tags": note_tags})
  
          reply = {"status": "OK",
                   "type": "Note",
                   "object": {
                             "received note": msg['object']['note'],
                             "received tags": msg['object']['tags'],
                             "ID": note_id}
                   }
  
          return json.dumps(reply)
docs: Handle a new note.
  
          :param msg: the received note
          :type msg: dict
          :returns: The message to reply with
          :rtype: str