python s3 upload file from memory