Added pyenv and removed unused functions