Support virtualenvs in application.py