Fixed Python examples to work with OpenCV 3.0.0