def write_text(self, text): " Write text to the stdin of the process. " win32file.WriteFile(self.stdin_handle, text.encode('utf-8'))