code: def _empty_notification(self):
          
          sess = cherrypy.session
          username = sess.get(SESSION_KEY, None)
          if username in self.notifications:
              ret = self.notifications[username]
          else:
              ret = []
          self.notifications[username] = []
          return ret
docs: empty and return list of message notification