fix for using the shell with IPython >= 1.0

I have IPython 1.1 installed and needed this fix to start the shell