Raspberry Pi program to flash LEDs and shutdown (based on switch presses)