reader = csv.reader(open(parameters_file), dialect)
keys = [key.lower() for key in next(reader)]
for line in reader:
    parameter = dict(zip(keys, cells))
A Pythonic way to read CSV with row and column headers