import csv


def read_csv_fieldnames(filename, separator, quote):
    """
    Inputs:
      filename  - name of CSV file
      separator - character that separates fields
      quote     - character used to optionally quote fields
    Ouput:
      A list of strings corresponding to the field names in
      the given CSV file.
    """
    #function assumes first row of CSV file contains the field names
    csvtable = []
    with open(filename, "rt", newline = '') as csvfile:
        #open reader with delimeter and quotechar options to set seperator and quote
        csvreader = csv.reader(csvfile,
                               delimiter = separator, 
                               quotechar = quote)
        #easiest way to access a row
        for row in csvreader:
            csvtable.append(row) 
            #beak becuase you only need first row
            break
    #instead returning csvtable = [[]] lst is returned = []
    lst = csvtable[0]
    return lst