import csv


def get_header_row(fpath, delim=',', lowercase=False):
    """Read first row of a CSV file."""

    with open(fpath, 'r') as fh:

        rdr = csv.reader(fh, delimiter=delim)
        hdr = [i.strip() for i in next(rdr)]

    if lowercase:
        hdr = [i.lower() for i in hdr]

    return hdr