To decouple python from the dev config and contain it solely in the python config, configure the lsp-mode for python in the python config.