Python and C Session