* lisp/progmodes/python.el: Shell output capture enhancements.