example = """foo,Bar,BAZ
42,3.14159,Hello world!""".splitlines()
csvDict = DictReaderInsensitive(example)
row = next(csvDict)
print(row)
row['BAZ']
Python dictreader - How to make CSV column names lowercase?