Refactor s3 downloads

Put s3_download function in s3_multithread module