You're having this problem because your program can't locate the path to your cert file.
To solve it, you can export the following env var and run your program.
export SSL_CERT_FILE=$(python3 -m certifi)
python3 your_script.py
Or
import certifi
os.environ["SSL_CERT_FILE"] = certifi.where()