import win32gui
import win32con
if argument == "on":
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND,
win32con.SC_MONITORPOWER, -1)
if argument == "off":
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND,
win32con.SC_MONITORPOWER, 2)
if argument == "sleep":
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND,
win32con.SC_MONITORPOWER, 1)