Automatic color correction with OpenCV and Python