code: def sys_call(cmd):
      
      p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
      return p.stdout.readlines(), p.stderr.readlines()
docs: Execute cmd and capture stdout and stderr
  
      :param cmd: command to be executed
      :return: (stdout, stderr)