Python Median 2d Array Smoothing