i have a same issue at using python version 3.8, but you can use urllib with http protocol (non https) like url = "http://www.google.com" for test maybe this just only used for http protocol request but not for https "correct me if i wrong thank you^" so how we can do that-:
import urllib.request
url = "http://www.google.com/"
headers = {'User-Agent': "duckduckgo.com-bot"}
request = urllib.request.Request(url, headers)
response = urllib.request.urlopen(request)
print(response)
reference document from python 3.8 -> (https://docs.python.org/3.8/library/urllib.request.html
)
you can refer what you need -> ctrl+f urllib.request + urllib.request.urlopen