def set_status(self, status):
        """
        Save the new status and call all defined callbacks
        """
        self.status = status
        for callback in self._update_status_callbacks:
            callback(self)
def set_status ( self , status ) : self . status = status for callback in self . _update_status_callbacks : callback ( self )
Save the new status and call all defined callbacks