def METHOD_NAME(stderr_to_stdout=True):
    """
    Simple version of stdio redirection: always open a console, and don't pause before closing.
    """
    if os.name == 'nt':
        def console_open(mode):
            attach_windows_console()
            return open("CON:", "r") if mode == "r" else open("CON:", "w") 
        if sys.__stdin__ is None:
            sys.__stdin__ = sys.stdin = console_open("r")
        if sys.__stdout__ is None:
            sys.__stdout__ = sys.stdout = console_open("w")
        if sys.__stderr__ is None:
            sys.__stderr__ = sys.stderr = sys.__stdout__ if stderr_to_stdout else console_open("w") 
            sys.__stderr__ = sys.stderr = console_open("w")