code: def append(self, message_level, message_text):
          
          if not message_level in MessagesHeader._message_levels:
              raise ValueError('message_level="%s"' % message_level)
          self._messages.append((message_level, message_text))
docs: Adds a message level/text pair to this MessagesHeader