Recognizing digits with OpenCV and Python