I get this error when I try to generate_session. SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)
It has always been working fine, this is the first time there is a connection error.
You can go through a similar problem thread here.