script for copying files in s3 buckets