title: Delay program until download completes
body: <p>I have some code to download content:</p>
  
  <pre><code>def downloadupdate():
  
      url = 'http://myurl.com/o/test/Super.zip'
      destination = xbmc.translatePath('somepath.zip')
      urllib.urlretrieve(url,destination)
      time.sleep(40)
  </code></pre>
  
  <p>Is there a way in Python to delay the script from running until the download has completed?  As you can see, I am currently using <code>time.sleep(x)</code> to accomplish this now, and in that I'm guessing at how long it will take. I'd rather have the script continue once the download is done, if this is possible.</p>