Pyrex lets you write Python-like code that mixes Python and C data types any way you want, and compiles it into a C extension for Python.