def time_in_seconds(time):
    splits = time.split(":")
    seconds = float(splits[0]) * 60 + float(splits[1]) 
    return seconds

def file_to_seconds(file):
    times = []
    f = open(file)
    for x in f.readlines():
        times.append(time_in_seconds(x))
    f.close()
    return times

def print_lines(times):
    for i in times:
        print(i)

print_lines(file_to_seconds("text_files/test.txt"))
1199.78
1224.03
1264.99
1273.54
1318.37
1326.42
1395.4
1192.24
1262.54
1287.35
1291.59
1308.25
def time_in_minutes(time):
    time = float(time) / 60
    timeCo = str(time)
    timeCo = timeCo.split(".")
    minutes = timeCo[0]
    seconds = "0." + str(timeCo[1]) 
    seconds = float(seconds) * 60
    seconds = round(seconds,2)
    if seconds > 10:
        times = str(minutes) + ":" + str(seconds)
    else:
        times = str(minutes) + ":0" + str(seconds)
    return times

def file_to_minutes(file):
    times = []
    f = open(file)
    for x in f.readlines():
        times.append(time_in_minutes(x))
    f.close()
    return times

def print_lines(times):
    for i in times:
        print(i)

print_lines(file_to_minutes("text_files/test.txt"))
17:35.87
17:36.65
17:42.43
17:43.7
18:04.62
18:17.54
18:21.21
18:22.92
18:25.39
18:26.19
18:43.2
18:43.67
18:43.96
18:44.63
18:49.71
18:54.1
19:03.13
19:09.34
19:12.16
19:20.43
19:26.07
19:41.34
19:41.83
19:44.12
19:53.66
19:55.68
20:01.57
20:05.27
20:09.14
20:09.78
20:32.39
20:32.9
20:35.82
20:50.29
20:57.06
21:12.34
21:13.51
21:42.56
21:50.49
21:58.11
23:27.46
19:11.79
19:35.07
20:14.39
20:22.6
21:05.64
21:13.36
22:19.58
19:04.55
20:12.04
20:35.86
20:39.93
20:55.92