Http.server not loading in embedded python

#include <Python.h>
void runPy() {
    Py_SetPath(L"/Users/xxx/p/python-embed/libs/cpython/Lib:/Users/xxx/p/python-embed/src/app");
    Py_SetPythonHome(L"/Users/xxx/p/python-embed/libs/cpython/Lib:/Users/xxx/p/python-embed/libs/cpython/build/lib.macosx-11.5-x86_64-3.10");

    Py_Initialize();
    if (!Py_IsInitialized()) {
        printf("Failed to initialize python interpreter.");
    }
}

int main(int argc, char *argv[]) {
    // import fail
    runPy();
    PyObject *mymod = PyImport_ImportModule("importFail");
	PyObject *strfunc = PyObject_GetAttrString(mymod, "runSimp");
	PyObject *strargs = Py_BuildValue("()");
	PyObject *ret = PyEval_CallObject(strfunc, strargs);
}
from http.server import BaseHTTPRequestHandler, HTTPServer
import sys; print(sys.path)
def runSimp():
	print("foo")
runSimp()

Getting a segfault, but the segfault doesn’t tell much about the actual problem.