PyEmbedC enables you to embed C/C++ code within your Python source code. Your inline C code can access and modify Python variables and lists using basic C constructs (so a Python string becomes a C "char *", and a list becomes an array). In addition, you can call Python functions from within your C code.
Release Notes: The ability to call Python functions from within C/C++ code has been added. All local/global variables can be dynamically imported. Changing local variables and arrays is now fully supported.