Same as doWebRequest, but with built in wait-looping

def doWaitWebRequest(url, method="GET", data=None, headers={}):
    """
    Same as doWebRequest, but with built in wait-looping
    """

    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