In python method mapping table is an array of PyMethodDef structures which creates this (PyMethodDef) structure through a function and the table needs to be terminated with a sentinel that consists of NULL and 0 values for the appropriate members.
useing this function in .py file,
1- ml_name: This is the name of the function as the Python interpreter presents when it is used in Python programs.
2- ml_meth: It is the address to a function that has anyone of the signatures described in previous section.
3- This flag usually has a value of METH_VARARGS