Added missing close parenthesis.
Need to import itertools.