Move 'pycore.modname' into libutils because it doesn't use pycore functions.