python: slicing py34 compatibility fix