def write_stdout(self, data): ''' Writes to stdout as if the child process had written the data. ''' #os.write(pty.STDOUT_FILENO, data)