added support for bpython & plain shell