def _start_subprocess_for_result(cmd):
 task = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 (out, err) = task.communicate()
 return (out, err)

def _start_subprocess_for_result ( cmd ) : task = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) ( out , err ) = task . communicate ( ) return ( out , err )
starts subprocess and returns .