python extension with C programming