code: def __interact_writen(self, fd, data):
          '''This is used by the interact() method.
          '''
  
          while data != b'' and self.isalive():
              n = os.write(fd, data)
              data = data[n:f __interact_writen(self, fd, data):
          '''This is used by the interact() method.
          '''
  
          while data != b'' and self.isalive():
              n = os.write(fd, data)
              data = data[n:]
docs: This is used by the interact() method.