use appropriate module for IPython 1.0.0

Maybe it works also for IPython 1.1