Py_Initialize()
main = PyImport_AddModule('__main__')
d = PyModule_GetDict(main)
PyRun_String('a = (1, 2, 3)', Py_single_input, d, d)
PyRun_String('a', Py_single_input, d, d)
Printing a variable in an embedded Python interpreter