title: urlretrieve generating "No such file" error
body: <p>I have the problem below:</p>
  
  <pre><code>objectlist = ["1", "2", "3"]
  namelist = ["name1.png", "name2.png", "name3.png"]    
  
  for i in objectlist:
      for j in namelist:
      url = "https://your.domain/id="+i
      urllib.request.urlretrieve(url, j)
  </code></pre>
  
  <p>I need to access the URL in the sequence "1", "2" and "3" and download the renaming PNG images according to "name1.png", "name2.png" and "name3.png". However, I get this error:</p>
  
  <pre><code>    CeXs-MacBook-Air:Report Graphics danielvincenzi$ python3 main.py
      Traceback (most recent call last):
        File "main.py", line 55, in &lt;module&gt;
          download(objectid, nameid)
        File "main.py", line 53, in download
          urllib.request.urlretrieve(url, j)
        File"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 258, in urlretrieve          
          tfp = open(filename, 'wb')
      FileNotFoundError: [Errno 2] No such file or directory: 'name1.png'
  </code></pre>
  
  <p>Can you help me?</p>
  
  <p>Thanks,</p>