Update script.py

Simulates a dirty shutdown on OS X that allows the system to automatically power on after AC power is restored