def srm_download(url, filename): ''' Download the file in `url` storing it in the path given by `filename`. ''' with open(filename, 'w') as f: srm_download_to_file(url, f)