C and python mixing