I want to enter the password automatically for a Password Request by Sudo in this line :-
os.system("sudo -S shutdown -r")