In order to use mongo+srv protocol, you need to install pymongo-srv
Launch this command to do it with python 3:
pip3 install pymongo[srv]
or this one for other versions:
pip install pymongo[srv]
And as @lukrebs suggested, for ZSH, add quotes:
pip3 install 'pymongo[srv]'