#include static PyMethodDef testModuleMethods[] = { {"test1", testModule_test1, METH_VARARGS, ""}, {"omg", testModule_omg, METH_VARARGS, ""}, {NULL, NULL, 0, NULL} }; PyObject * testModule_test1(PyObject *self, PyObject *args) { } PyObject * testModule_omg(PyObject *self, PyObject *args) { } PyMODINIT_FUNC inittestModule(void) { (void) Py_InitModule("testModule", testModuleMethods); }