ctp: refresh agent.py using lovelylain

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