some improvements to python env loading and shit