Python code for restart
Python code for shutdown