<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_record(self, now, rec):
 """Used to notify listeners of new information that has updated a record."""

        for listener in self.listeners:
            listener.update_record(self, now, rec)
        self.notify_all()