pymongo - "dnspython" module must be installed to use mongodb+srv:// URIs
I would like to answer my own questions here. As I mentioned in the comment, the kernel of the jupyter notebook has to be restarted in order for the pymongo to take effect of the loaded dnspython.
I am trying to connect MongoDB from Atlas.
My mongo uri is: mongodb+srv://abc:123@something.something.com/admin?retryWrites=True
My pymongo version is 3.6.1
I have installed dnspython and done import dns
But i still get this error:

dnspython module must be installed to use mongodb+srv:// URI