def ball_started(self, **kwargs):
        self.log.debug("ball_started")
        # turn off all the ball lights
        for k, v in self.config.iteritems():
            if k.startswith('ball_'):
                v['light'].off()

        # turn on this current ball's light
        ball_light = 'ball_' + str(self.machine.game.player.ball)
        if ball_light in self.config:
            self.config[ball_light]['light'].on()

        # turn off the tilt light
        if 'tilt' in self.config:
            self.config['tilt']['light'].off()
dataset/ETHPy150Open missionpinball/mpf/mpf/plugins/info_lights.py/InfoLights.ball_started/original