with open(filename) as f:
    lines = f.readlines()
for i in range(0, len(lines), 14):
    firstLines = lines[0].strip().split('   ')
hour = firstLines[1]
for j in range(i, i + 14):
    line = lines[j]
line.strip().split('   ')[0] = hour
change information every 14 rows python