use sys.stdout and flush to set xterm title