add cli remote, and rework python script