#include <Python.h>

extern void doYouDo(const char*);

PyObject* what_doYouDo(PyObject* self, PyObject* args, PyObject* kw){
  const char* jobs = NULL;
  static char* argnames[] = {"jobs", NULL};
  if(!PyArg_ParseTupleAndKeywords(args, kw, "|s", argnames, &jobs))
    return NULL;
  doYouDo(jobs);
  return Py_BuildValue("");
}

static PyMethodDef whatmethods[] = {
  {"doYouDo", (PyCFunction)what_doYouDo, METH_VARARGS | METH_KEYWORDS, ""},
  {NULL, NULL, 0, NULL},
};

static struct PyModuleDef hello = {
  PyModuleDef_HEAD_INIT,
  "hello",
  "Python3 C API Module (Sample 1)",
  -1,
  whatmethods
};

PyMODINIT_FUNC PyInit_hello(void){
  return PyModule_Create(&hello);
};