re-write python CLI