I would like to translate some C code to Python code or bytecode. The C code in question is what i'd call purely algorithmic: platform independent, no I/O, just algorithms and in-memory data structures.
An example would be a regular expression library. Translation tool would process library source code and produce a functionally equivalent Python module that can be run in a sandboxed environment.
What specific approaches, tools and techniques can you recommend?
Note: Python C extension or ctypes is not an option because the environment is sandboxed.
Another note: looks like there is a C-to-Java-bytecode compiler, they even compiled libjpeg to Java. Is Java bytecode+VM too different from CPython bytecode+VM?