fixing regression caused by urllib2_file removal