def button_hold(now, seconds):
    if (seconds > 3):
        print('button hold')
        led.blink(0.05, 0.5)
        requests.get('http://localhost:8080/home')
        time.sleep(2)
        subprocess.call(['shutdown', '-h', 'now'], shell=False)
def button_hold(now, seconds):
    if (seconds > 3):
        print('button hold')
        led.blink(0.05, 0.5)
        requests.get('http://localhost:8080/home')
        time.sleep(2)
        subprocess.call(['shutdown', '-h', 'now'], shell=False)