proc = subprocess.Popen(['path_to_tool', '-option1', 'option2'], stdout=
    file_out, stderr=subprocess.PIPE)
for line in proc.stderr:
    sys.stdout.write(line)
log_file.write(line)
proc.wait()
Python: subprocess.call, stdout to file, stderr to file, display stderr on screen in real time