def _load_wincerts():
        """Set _WINCERTS to an instance of wincertstore.Certfile."""
        global _WINCERTS

        certfile = CertFile()
        certfile.addstore("CA")
        certfile.addstore("ROOT")
        atexit.register(certfile.close)

        _WINCERTS = certfile
Set _WINCERTS to an instance of wincertstore.Certfile.
stackoverflow/venv/lib/python3.6/site-packages/pymongo/ssl_support.py