(py-comint-output-filter-function): Put the pop-to-buffer call inside the `when' condition so other non-Python shell comint changes won't cause random buffers to pop.
(py-comint-output-filter-function): Put the pop-to-buffer call inside
the `when' condition so other non-Python shell comint changes won't
cause random buffers to pop.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator