Improved support for Python 2.6.
Work around error "ValueError: r cannot be bigger than the iterable" in method `itertools.combinations()`.