code: def clear_notify(self, messages):
          
          newpile = self._notificationbar.widget_list
          for l in messages:
              if l in newpile:
                  newpile.remove(l)
          if newpile:
              self._notificationbar = urwid.Pile(newpile)
          else:
              self._notificationbar = None
          self.update()
docs: Clears notification popups. Call this to ged rid of messages that don't
          time out.
  
          :param messages: The popups to remove. This should be exactly
                           what :meth:`notify` returned when creating the popup