def process_url(image_url):
    if (not (check_url(image_url) == 1)):
        filename = (pictureLocation + image_url.split('/')[(- 1)])
        req = urlretrieve(image_url, filename)
        bingImage = path.abspath(filename)
        print(bingImage)
    else:
        raise Exception('bad url')
def process_url(image_url):
    if (not (check_url(image_url) == 1)):
        filename = (pictureLocation + image_url.split('/')[(- 1)])
        req = urlretrieve(image_url, filename)
        bingImage = path.abspath(filename)
        print(bingImage)
    else:
        raise Exception('bad url')