main: compat with IPython 1.0 and more

In those versions, the `frontend` module has been deprecated.