Numpy resample 2d array