<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _config_changed(self, data, stat):
 """Called when config changes."""


        self.config = json.loads(data)

        if self.cb:
            self.cb(self.config)