ctp: update ctpagent.py

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>