Extracted the python-specific parts from the shell configs