python demo cmp