<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_callback(self, cb):
 """ Register cb as a new callback. Will not register duplicates. """

        if ((cb in self.callbacks) is False):
            self.callbacks.append(cb)