Fixed problem in download_file wrt named tuples