import boto3
s3 = boto3.resource('s3')
bucket = s3.Bucket('mybucket')
obj = bucket.Object('mykey')
with open('filename', 'wb') as data:
    obj.download_fileobj(data)
Эквивалент get_contents_to_file в boto3