Simple startup script that controls basic buttons for turning the screen on and off and shutting down
Put it in your /home/pi directory and enter this in terminal:
sudo nano /etc/rc.local
then add this line to that file:
sudo python /home/pi/shutdown.py