<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new_cast_status(self, status):
 """ Called when a new status received from the Chromecast. """

        self.status = status
        if status:
            self.status_event.set()