title: Python PSS/E get output as variable
body: <p>I am power engineer and I often use python in PSS/E program. I am stacked and I want your help as programmers. I have this small code:</p>
  
  <pre><code>import os,sys
  
  PSSE_LOCATION = r"C:\Program Files\PTI\PSSE33\PSSBIN"
  sys.path.append(PSSE_LOCATION)
  os.environ['PATH'] = os.environ['PATH'] + ';' +  PSSE_LOCATION
  
  import psspy
  import redirect
  redirect.psse2py()
  
  #--------------------------------
  # PSS/E Saved case
  
  CASE = r"""D:\xxx\Desktop\TESTING\SUMMAX.sav"""
  
  if __name__ == '__main__':
      psspy.psseinit(2000)
      psspy.case(CASE)
      psspy.fnsl(
          options1=0, # disable tap stepping adjustment.
          options5=0, # disable switched shunt adjustment.
      )
      psspy.fdns([0,0,0,1,1,0,99,0])
      psspy.area_2(0,1,1)
  </code></pre>
  
  <p>Code <code>redirect.psse2py()</code> prints the program report in Console. Can you help me to get those outputs as variable?</p>