Python Write File To S3 Bucket, The upload_file method accepts a file name, a bucket name, and an object name.