<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_console_message(self, message_type, message):
 """add messages in the console_messages list """

        for m in message.split("\n"):
            if m.strip():
                self.console_messages.append((message_type, m))