def download(url, location):
    """
    Download files to the specified location.
    :param url: The file URL.
    :type url: str
    :param location: The absolute path to where the downloaded
        file is to be stored.
    :type location: str
    """
    request = urllib2.urlopen(url)
    try:
        content = request.read()
        fp = open(location, 'w+')
        try:
            fp.write(content)
        finally:
            fp.close()
    finally:
        request.close()
The software does not validate, or incorrectly validates, a certificate.