Thanks @maciejg - I followed the steps and deleted the certificate from both Trusted Root Certification Authorities and Third Party Root Certification Authorities . but look like windows 10 just automatically reinstalls the “DST Root CA X3” certificates.
I also looked at another post on this SSLCertVerificationError using python SDK - #5 by kellytmcnallan
Where they suggested simply deleting the “DST Root CA X3” from the pem file (which is a text file that python uses for storing certificates). Got the location of the pem file by running the following commands.
import certifi
print(certifi.where())
I still get the same certificate verify failed error. Any thoughts?