def upload_files(self): for bucket in self.uploads: files = [file.strip() for file in self.uploads[bucket].split(',')] for file in files: self._upload_file_to_s3(file, bucket)