［spooler］memory leak bugfix & simplified code

**COMMIT ONE** (fixed python spooler memory leak)
```cpp
 -    PyDict_SetItemString(spool_dict, "body", PyString_FromStringAndSize(body, body_len));
 +    PyObject *value = PyString_FromStringAndSize(body, body_len);
 +    PyDict_SetItemString(spool_dict, "body", value);
 +    Py_DECREF(value);
```

**COMMIT TWO** (simplified the python spooler code)
clean up everything at the end of the function