with open('file.txt', 'w') as out_file:
    for line in buf:
        if line == '; Include this text\n':
            line = line + 'Include below\n'
out_file.write(line)
Добавление строк после определенной строки