Adding the virtualenv hooks