Hi @Amine_Gharbi welcome to the community!
The error SSL: CERTIFICATE_VERIFY_FAILED
was commonly due to outdated OS root certificate. Please have a look at the solution in Keep getting ServerSelectionTimeoutError - #10 by Priyanka_Priyadarshini and see if it helps.
Best regards
Kevin