passwords = urllib.request.HTTPBasicAuthHandler(password_store)
opener = urllib.request.build_opener(passwords)
resp = opener.open(url)
resp.read()
Programmatically Provide Secondary WiFi HotSpot Credentials with Python on Linux