import requests
url = 'https://Hostname/saveReport/file_name.pdf'
r = requests.get(url, auth=('usrname', 'password'), verify=False, stream=True)
r.raw.decode_content = True
with open('file_name.pdf', 'wb') as f:
    shutil.copyfileobj(r.raw, f)
How do i download pdf file over https with python