Added PYTHON environment autodiscovery as in an agent