Remove certain elements in output results from my code

I have a running and executing code that works but I need to remove certain data from the output file. Furthermore, I need another data entered as a header, “DBN”, “School Name”, “Number of Test Takers”, “Critical Reading Mean”, “Mathematics Mean”, “Writing Mean”

My code will be provided:

import json

class SatData:
def __init__(self):
with open('sat.json', 'r') as f:
self._data = json.load(f)['data']

def save_as_csv(self, dbns):
sat_list = []
for data in self._data:
if data[8] in dbns:
sat_list.append(data)

with open('output.csv', 'w+') as outfile:
header = [str(i) for i in range(len(sat_list[3]))]
outfile.write
for row in sat_list:
sat_info = []
for item in row:
if ',' in str(item):
sat_info.append(""" + item + """""")
else:
sat_info.append(str(item))
outfile.write('