import csv


def read_csv(f, Model):
    """
    Given a CSV file with a header, read rows through `Model` function.
    Returns generator function.
    """
    reader = csv.reader(f, dialect="excel")
    next(reader, None)  # skip the header row
    return (Model(row) for row in reader)