Python C extension: Extract parameter from the engine
<p>I would like to use Python to perform Mathematics tests on my functions. A typical program that can gain access to Python is this:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;Python.h&gt;
int RunTests()
{
    Py_Initialize();

    PyRun_SimpleString("a=5");
    PyRun_SimpleString("b='Hello'");
    PyRun_SimpleString("c=1+2j");
    PyRun_SimpleString("d=[1,3,5,7,9]");

    //question here

    Py_Finalize();
    return 0;
}
</code></pre>

<p>My question is: How can I extract the parameters <code>a,b,c,d</code> to <code>PyObject</code>s?</p>