def handle(self, *args, **options):
        today = date(2014,11,1)
        last_week = get_week_number(today) - 1
        first_week = get_week_number(data_start)
        
        
        outf = "%s/%s" % (CHART_CSV_DOWNLOAD_DIR, CSV_FILE_NAME)
        print "writing to %s" % outf
        outfile = open(outf, 'w')
        field_names = make_header(first_week, last_week)
        outfile.write(",".join(field_names) +"\n")
        dw = csv.writer(outfile)

        if write_cumulative:

            outcumf = "%s/%s" % (CHART_CSV_DOWNLOAD_DIR, CSV_FILE_NAME_CUMULATIVE) 
            print outcumf % "writing cumulative numbers to %s"
            outcumfile = open(outcumf, 'w')
            field_names = make_header(first_week, last_week)
            outcumfile.write(",".join(field_names) +"\n")
            cumdw = csv.writer(outcumfile)


        
        for data in data_series:
            this_row = [data['data_id'], data['data_series_name']]
            this_cum_row = [data['data_id'], data['data_series_name']]
            for week in range(first_week, last_week+1):
                print "handling %s week %s" % (data['data_series_name'], week)
                this_row.append(summarize_week_queryset(week, data['q']))
                if write_cumulative:
                    this_cum_row.append(summarize_week_queryset_cumulative(week, data['q']))
            dw.writerow(this_row)
            if write_cumulative:
                cumdw.writerow(this_cum_row)
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/summary_data/management/commands/write_weekly_files.py/Command.handle/swapped operands of `%`