use appropriate module for IPython 1.0.0
Merge pull request #253 from michele-comitini/issue-1710

use appropriate module for IPython 1.0.0