def download_files(tag): paths_in_website = searchfiles(tags_url, host, tag, search) [wget.download(path_in_website, out = tag) for path_in_website in paths_in_website]