def METHOD_NAME(results):
    headers = results.keys()
    outfile = 'out.csv'
    with open(outfile, 'w') as f:
        rows = [
            ['' if not b else b for b in i] for i in itertools.zip_longest(*[results[c] for c in headers])
        ]
        write = csv.writer(f)
        write.writerow([header.decode('ascii') for header in headers])
        write.writerows(rows)
    print(f'Wrote CSV to {outfile}')