def outputFromPythonScript(script, *args):
 with open(devnull, 'rb') as nullInput:
  with open(devnull, 'wb') as nullError:
   process = Popen(([executable, script.path] + list(args)), stdout=PIPE, stderr=nullError, stdin=nullInput)
   stdout = process.communicate()[0]
 return stdout

def outputFromPythonScript ( script , * args ) : with open ( devnull , 'rb' ) as nullInput : with open ( devnull , 'wb' ) as nullError : process = Popen ( ( [ executable , script . path ] + list ( args ) ) , stdout = PIPE , stderr = nullError , stdin = nullInput ) stdout = process . communicate ( ) [ 0 ] return stdout
synchronously run a python script .