I believe this should be changed to
```python
        return itertools.islice(self.walk_words(), num)
```