Python and C code