adding ability for pre/post hooks to be run in same virtualenv if is .py

this corresponds to https://github.com/audreyr/cookiecutter/pull/101