CLN: Fix __getitem__ for Python2/3