python program to filter y planes of each frame using 3x3 gaussian filter,Cb & Cr planes are not to be filtered

Given a YUV binary file, it contains 10 frames of YCbCr 4:2:0 planar binary video at 176 X 144 resolution ie there are 10 video frames each of which consisting of 176 X 144 bytes of Y pixels, followed by 88 X 72 plane of Cb pixel and 88 X 72 plane of Cr pixels. The task is to filter only Y planes of each frame using a 3x3 gaussian filter while Cb & Cr planes are not filtered.

Gaussian Filter [1 2 1 2 4 2 1 2 1]/16