Python architecture with C