GPIO.input not working for LED, using variable instead