Download

content is bytes.

r = requests.get(url)
with open('file.bin', 'wb') as f:
    f.write(r.content)