fixed py3 memoryview to direct slicing comparison