YES! Just what I've been looking for. I opted to move the time sleep under the GPIO.output. Only noting this hear because I was thinking my light wasn't working. I was rapidly clicking... and then I noticed the sleep function... was sleeping, while I let go of the button and the state changed.