I'm not sure what your problem is. I was able to run this successfully in python:
#!/usr/bin/env python3
import sys
import requests
if (len(sys.argv) != 3):
sys.exit ('Oauth and Data Query Job Id are required required')
oauth = sys.argv[1]
job_id = sys.argv[2]
dataQueryUrl = 'https://rest.apisandbox.zuora.com/query/jobs'
header = {"Content-Type": "application/json", "Authorization": "Bearer " + oauth, "Accept": "*/*"};
job = requests.get(dataQueryUrl + '/' + job_id, headers=header)
data = job.json()
file = requests.get(data['data']['dataFile'])
print (file.text)
My data query job was submitted through the Data Query UI and looks like it was using CSV as the output format, so that's the only difference I saw. The body string in your result also looks like base64, but I don't really know why that is.
... View more