Support matplotlib's Gtk3 backend in --pylab mode

If you set the matplotlib backend to `Gtk3Agg` or `Gtk3Cairo` in `matplotlibrc` and then start up `ipython --pylab`, no plots are shown.

Fortunately, the hard bit of supporting a Gtk3 eventloop has already been done, it just needs the mapping so it knows to use it.