import ctypes
handle = ctypes.windll.kernel32.GetStdHandle(-11) # -11 for output -10 for input -12 for error
ctypes.windll.kernel32.SetConsoleTextAttribute(handle, 0x01) # foreground=bule 0x10 background=blue
import ctypes
handle = ctypes.windll.kernel32.GetStdHandle(-11) # -11 for output -10 for input -12 for error
ctypes.windll.kernel32.SetConsoleTextAttribute(handle, 0x01) # foreground=bule 0x10 background=blue