[Maya]Python IOError with Output Window disabled

Could you list the steps you did to remove the output window? What version as Maya as well?

I created a user environment variable MAYA_NO_CONSOLE_WINDOW=1 and it seems to be working fine in Maya2017.