def METHOD_NAME(self, data, filename):
    with open(filename, 'w') as csvfile:
        writer = csv.writer(csvfile, delimiter=' ', lineterminator='\n')
        for username, binding in data:
            writer.writerow([username, binding])