python.objects: fix <py-cfunction> need to malloc-struct PyMethodDef

I completely misused the PyMethodDef struct. This patch should fix the callback crashes.