fix for using the shell with IPython >= 1.0