def METHOD_NAME(self):
    global cube
    self.LightsOn1 = not self.LightsOn1
    if self.LightsOn1:
        render.setLight(self.slnp1)
        self.slnp1.setPos(cube, 10, 0, 400)
        self.slnp1.lookAt(10, 0, 0)
    else:
        render.setLightOff(self.slnp1)