arquivo para minúsculas python

import fileinput

for line in fileinput.input("test.csv", inplace=1):
    print(line.lower(), end='')
FriedOxygen