code: def get_csv_header(fname, sep=','):
      
      with open(fname, encoding='utf-8-sig') as f:
          return next(f).split(sep)
docs: :param fname: a CSV file
      :param sep: the separator (default comma)
      :returns: the first line of fname