Если exe печатает на экране, передайте этот вывод в текстовый файл. Я предположил, что exe находится в Windows, а затем из командной строки:
myapp.exe> output.txt
А ваш достаточно надежный код Python будет выглядеть примерно так:
try:
f = open("output.txt", "r")
lines = f.readlines()
# Using enumerate gives a convenient index.
for i, line in enumerate(lines) :
if 'Summary' in line :
print lines[i+1]
break # exit early
# Python throws this if 'Summary' was there but nothing is after it.
except IndexError, e :
print "I didn't find a line after the Summary"
# You could catch other exceptions, as needed.
finally :
f.close()