Make Python module's cv.QueryFrame release the GIL

Hi,

many functions in the Python module currently keep the GIL locked whilst performing heavy calculations, including QueryFrame which doesn't calulcate anything but it blocks while waiting until it can take a picture.

I modified the opencv Python module to make sure that cv.QueryFrame releases the GIL so other threads can run while the camera is being queried.