Hi @Aarik_Ghosh welcome to the community!
Are you still seeing this issue? If yes, could you please follow the troubleshooting steps described here Keep getting ServerSelectionTimeoutError and see if it fixes it?
If not, could you specify your OS version, and the code in the file test.py
Best regards
Kevin