Python Slice 2d Array Without Numpy Mean Value Theorem