<human>:  How to make a python script which can logoff, shutdown, and restart a computer?
<bot>:)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.