modify python for CV2