from csv import DictReader


def read_csv(fname, handler, sheet, *args, **kwds):
    """Reads the given csv file *fname* as DictReader and calls handler with
        the first argument as the reader. Optional and named parameters are
        passed to the provided handler"""
    with open(fname) as f:
        r = DictReader(f)
        return handler(r, *args, **kwds)