#!/usr/bin/env python
import sys
if sys.platform.startswith('linux'):
	import os
	os.system("xset dpms force off")
elif sys.platform.startswith('win'):
	import win32gui
	import win32con
	from os import getpid, system
	from threading import Timer
	
	def force_exit():
		pid = getpid()
		system('taskkill /pid %s /f' % pid)
	
	t = Timer(1, force_exit)
	t.start()
	SC_MONITORPOWER = 0xF170
	win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, SC_MONITORPOWER, 2)
	t.cancel()
elif sys.platform.startswith('darwin'):
	import subprocess
	subprocess.call('echo \'tell application "Finder" to sleep\' | osascript', shell=True)

@@ -26,16 +26,17 @@
 ort sys%0A
+%0A
 if sys.p
@@ -109,16 +109,17 @@
 e off%22)%0A
+%0A
 elif sys
@@ -485,16 +485,17 @@
 ancel()%0A
+%0A
 elif sys

add newlines for better readability