from itertools import product, starmap
from collections import namedtuple

def named_product(**items):
    Product = namedtuple('Product', list(items.keys()))
return starmap(Product, product(*list(items.values())))
Name parts of iterables in itertools.products