<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def notify(self, msg):
 """Send a notification to all registered listeners. msg : str Message to send to each listener """

        for listener in self.listeners:
            self._send(listener, msg)