def update(self, surface):
        pa = pygame.PixelArray(surface)

        if hasattr(self.machine, 'lights'):  # todo got to be a better way
            for light in self.machine.lights:
                if light.x or light.y:
                    if pa[light.x, light.y]:
                        light.on()
                    else:
                        light.off()
        if hasattr(self.machine, 'leds'):
            for led in self.machine.leds:
                pass
dataset/ETHPy150Open missionpinball/mpf/mpf/media_controller/display_modules/playfield_lights.py/PlayfieldLights.update/operator `and` -> `or`