Improve Emacs multiple cursors rules.
Make repl a bash script started ipython or manage.py shell.