Update shutdown.py

Used variables to hold pin definitions to allow easier changing of pin assignments.