def METHOD_NAME(self, csvfile):
    reports = defaultdict(list)
    for records in self.download():
        for record in records:
            id = record['id']
            score = openness_score(record)
            report = reports[record['organization']['title']]
            title = record["title_translated"]
            title = title.get('en', title.get('en-t-fr', '')) + ' | ' + title.get('fr', title.get('fr-t-en', ''))
            url = ''.join(['http://open.canada.ca/data/en/dataset/', id, ' | ',
                  'http://ouvert.canada.ca/data/fr/dataset/', id])
            report.append([title, url, score])
    orgs = list(reports)
    orgs.sort()
    outf=open(csvfile, 'wb')
    outf.write(codecs.BOM_UTF8)
    out = unicodecsv.writer(outf)
    #Header
    out.writerow([
                  "Department Name Englist | Nom du ministère en français",
                  "Title English | Titre en français",
                  "URL",
                  "Openness Rating | Cote d'ouverture",
                ])
    for k in orgs:
        rlist = reports[k]
        for r in rlist:
            line=[k, r[0], r[1], r[2]]
            out.writerow(line)
    outf.close()