always use sys.stdout