code: def no_sleep():
  	
  	mode = power.ES.continuous | power.ES.system_required
  	handle_nonzero_success(power.SetThreadExecutionState(mode))
  	try:
  		yield
  	finally:
  		handle_nonzero_success(power.SetThreadExecutionState(power.ES.continuous))
docs: Context that prevents the computer from going to sleep.