C code that extedns python