'Helper function to return list with the column names from the CSV file (the first row)'

def get_csv_row_with_headers(self):

    report_store = ReportStore.from_config(config_name='GRADES_DOWNLOAD')
    report_csv_filename = report_store.links_for(self.course.id)[0][0]
    report_path = report_store.path_to(self.course.id, report_csv_filename)
    with report_store.storage.open(report_path) as csv_file:
        rows = unicodecsv.reader(csv_file, encoding='utf-8')
        return rows.next()
