Fixed optional IPython imports.