Update example.py

Lights up 3 LEDs for 1 second each, waits for the switch to be pressed, beeps 5 times 500ms with 500ms pause and finally again waits till the user presses the switch, then exits and cleans up GPIO at once.