2d Grid Python. The value of each cell is the median value of the contents of th