updated version of the aws_uploader.py file