averaging over every n elements of a numpy array,"np.mean(arr.reshape(-1, 3), axis=1)"