"python, set terminal type in pexpect","a = pexpect.spawn('program', env={'TERM': 'dumb'})"