Make Python module's cv.QueryFrame release the GIL

Many functions in the Python module currently keep the GIL locked whilst operating, including QueryFrame which waits until the camera 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.