Modified IPython hook in order to catch every submodule.
With IPython 1.1.0 this hook wasn't working because it can't found a
bunch of submodules like html.notebookapp.