Python read csv

def read_csv(filename):
    with open(filename) as f:
        for row in csv.DictReader(f):
            yield {k.strip(): v.strip() for k, v in row.items()}