update function section for python