add more for optimize call python function