code: def doWaitWebRequest(url, method="GET", data=None, headers={}):
      
  
      completed = False
      while not completed:
          completed = True
          try:
              response, content = doWebRequest(url, method, data, headers)
          except urllib2.URLError:
              completed = False
              waitForURL(url)
      return response, content
docs: Same as doWebRequest, but with built in wait-looping