Python tests in cv