I warn you they are a little messy as I've never done python before and it was a learning experience BUT they all work
Scripts - Google Drive
autofan.py : Monitors CPU temp and automatically turns on the fan attached to the GPIO pin when a certain temp is reached.
button.py : The button press simulated an alt + Tab command that changes between kiosk mode chromium and the shotwell (the picture frame program)
open_shotwell.py: Script is ran at startup to open shotwell
startupshutdown.py: The script that at a push of a button closed down everything and turns off the pi... also is used to button press turn on the pi.
Good luck!