core: Update init hack for pydoc

We probably need to do this for Sphinx too, unless we just replace
the whole thing with something better (like a dummy core object?).