with open('path/to/input') as infile:
    rows = csv.reader(infile)
holyGrail = key(next(rows))
for row in rows:
    if key(row) != holyGrail:
        continue
do_stuff(row)
Search csv file for specific items in columns