word = '3'
delim = ','
with open('test_file.txt') as f:
    for line in f:
        if word in line:
            s_line = line.strip().split(delim)
two_words = s_line[s_line.index(word) + 1], s_line[s_line.index(word) + 2]
break
Read the next word in a file in python