def __getitem__(self, index):
        if isinstance(index, slice):
            return [self[ii] for ii in xrange(*index.indices(len(self)))]
        elif isinstance(index, int):
            item = self._vehicle._wploader.wp(index + 1)
            if not item:
                raise IndexError(index % 'Index %s out of range.')
            return item
        else:
            raise TypeError('Invalid argument type.')
dataset/ETHPy150Open dronekit/dronekit-python/dronekit/__init__.py/CommandSequence.__getitem__/swapped operands of `%`