fix bug in c
update python head