Morphological Gradient in OpenCV using Python