added if statement for python virtualenv/pyenv