old_contents: 
  from subprocess import Popen as BasePopen
  
  
  class Popen(BasePopen):
  
      def communicate(self, input=None, timeout=None):
          """
          Communicate
          :param input:   Optional input
          :param timeout: Optional timeout
          :return:        Out, err, exitcode
          """
  
          out, err = super(Popen, self).communicate(input=input, timeout=timeout)
  
          out = out.strip().split('\n')
          err = err.strip().split('\n')
  
          return out, err, self.returncode
  
      def is_running(self):
          """
          Running
          :return:    Boolean
          """
  
          return True if self.poll() is None else False
  
new_contents: 
  from subprocess import Popen as BasePopen
  
  
  class Popen(BasePopen):
  
      def communicate(self, input=None):
          """
          Communicate
          :param input:   Optional input
          :return:        Out, err, exitcode
          """
  
          out, err = super(Popen, self).communicate(input=input)
  
          out = out.strip().split('\n')
          err = err.strip().split('\n')
  
          return out, err, self.returncode
  
      def is_running(self):
          """
          Running
          :return:    Boolean
          """
  
          return True if self.poll() is None else False
  
subject: Fix error in communicate function.