require ipython for in python mode-hook.