I do this in order to turn off/on the monitors
import win32gui import win32con import win32api #to turn off use :- win32gui.SendMessage(win32con.HWND_BROADCAST,