I should be getting around 1000 results, but it this is only returning 100 of them into the output file.
g = requests.get(base_url + '/services/search/jobs/' + sid + '/results/',
headers = {'Authorization':('Splunk %s' %session_key)},data={'output_mode': 'json', 'count':'0'}, verify = False)
data = g.json()
names = [item['name'] for item in data['results']]
with open ('sOutput.csv', mode='w') as csv_file:
csv_writer = csv.writer(csv_file, delimiter='\n', quotechar='"', quoting=csv.QUOTE_MINIMAL)
csv_writer.writerow(names)