Reinicie o computador py

import os;
os.system("shutdown /r")
CodeIsEveryThing