numpy: replace every value in the array with the mean of its adjacent elements,"A = np.random.randn(1000, 1000)"