def write(self, status):
     picontrol.setlight(status)
     self.status = status
 def __init__(self):
     self.name = "Light"
     picontrol.setlight(False)
     self.status = False