title: Timeout a file download with Python urllib?
body: <p>Python beginner here. I want to be able to timeout my download of a video file if the process takes longer than 500 seconds. </p>
  
  <pre><code>import urllib
  try:
     urllib.urlretrieve ("http://www.videoURL.mp4", "filename.mp4")
  except Exception as e:
     print("error")
  </code></pre>
  
  <p>How do I amend my code to make that happen?</p>