Removing autoclose because it works poorly with Django templates.
Changed .bashrc to activate virtualenv environments on entering a directory and deactivate when leaving