import csv hw

Just so you know, these last 3 lines can be rewritten into 1 line:
csv.writer(f).writerows(csv_input)

Great job overall!