def download_from_url(url, filename=None, progress_hook=None):
 (temp_filename, headers) = urllib.urlretrieve(url, filename, progress_hook)
 return temp_filename

def download_from_url ( url , filename = None , progress_hook = None ) : ( temp_filename , headers ) = urllib . urlretrieve ( url , filename , progress_hook ) return temp_filename
downloads a file from an url in the specificed filename .