rendered paste body PyObject *module; module = Py_InitModule("MirPy", MirPyMethods); ServiceNotFoundError = PyErr_NewException("MirPy.ServiceNotFoundError", NULL, NULL); PythonServicesPlaceholder = PyDict_New(); PythonEventsPlaceholder = PyDict_New(); Py_INCREF(ServiceNotFoundError); Py_INCREF(PythonServicesPlaceholder); Py_INCREF(PythonEventsPlaceholder); PyModule_AddObject(module, "ServiceNotFoundError", ServiceNotFoundError); PyModule_AddObject(module, "PythonServices", PythonServicesPlaceholder); PyModule_AddObject(module, "PythonEventCallbacks", PythonEventsPlaceholder);