added preinit_apps hook in pypy