Maximum Function Count Python Array Slicing