start_with = ['As', 'Between', 'During']
parsers = [parse_as, parse_between, parse_during]
for l in f.readlines():
    match_found = False
for start, f in zip(start_with, parsers):
    if l.startswith(start):
        ts1, ts2 = f(l.split(' '))
match_found = True
break
if not match_found:
    raise NotImplementedError('Not found!')
Разработайте модуль для анализа текстового файла