'Retrieves a report'

def download_report(self, uuid, v1=False):

    if v1:
        data = make_args(token=self.token, report=uuid, v1='true')
    else:
        data = make_args(token=self.token, report=uuid)
    url = urljoin(self.base_url, ('file/report/download/?%s' % data))
    req = urllib2.urlopen(url)
    resp = req.read()
    if (not check_auth(resp)):
        print >>sys.stderr, 'Unauthorized'
        return None
    return resp
