Added a comment to explain a less-than-intuitive itertools.chain() line