def main():
    with open(INPUT, 'r') as reader:
        with open(OUTPUT, 'a') as writer:
            last_value = 0
for line in reader:
    pass
Python - Calculating the second column from the first one in a file