import re
with open('filename') as origin_file:
    for line in origin_file:
        line = re.findall('something', line)
if line:
    line = line[0].split('"')[1]
print(line)
cat, grep and cut - translated to python