def safe_browsing(url):
    """Returns True if url is safe or False is it is suspect"""
params = urllib.parse.urlencode({'client': 'api', 'apikey': 'yourkey', 'appver':
    '1.5.2', 'pver': '3.0', 'url': url})
Invalid Request in Google Safe-Browsing Lookup API