def METHOD_NAME(self, switch_to):
    if switch_to == 'on':
        GPIO.output(OUTPUT, GPIO.LOW)
        self.man_switch = True
        sleep(0.1)
        return True
    elif switch_to == 'off':
        GPIO.output(OUTPUT, GPIO.HIGH)
        self.man_switch = False
        sleep(0.1)
        _send_mail()
        return True
    else:
        return False