Computing image “colorfulness” with OpenCV and Python