making the check for a python shell (regular or ipython) a little more general
making the check for a python shell (regular or ipython) a little more general

rdhyee/sh,achernet/sh,ppannuto/sh,jakirkham/sh,hacosta/python-sh,lwgarmstrong/sh,pombredanne/sh,rsmith31415/sh,simudream/sh,twocngdagz/sh,Stupeflix/sh,pdelong42/sh,hacosta/python-sh,germangh/sh,amoffat/sh,amoffat/sh,z-fork/sh