modify python for CV