def enable_tally(self, enable): if enable: GPIO.output(self.gpio_red, GPIO.LOW) else: GPIO.output(self.gpio_red, GPIO.HIGH)