old_contents: #!/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)
  
new_contents: #!/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)
  
subject: add newlines for better readability