set -o emacs and set filec should go in inputrc, not bashrc.
removed some cruft from bashrc, added enter/exit commands for python environments.