from multiprocessing import Pool
import itertools
def addition(a,b,c,d,e,f,g,h,i):
return a+b+c+d+e+f+g+h+i
if __name__ == '__main__':
a, b, c, d, e, f, g, h, i = [1, 2], [3, 4], [5, 6], [7], [8], [9], [10], [11], [12]
comb2 = list(itertools.product(*[a,b,c,d,e,f,g,h,i]))
mp = Pool(1)
results = mp.starmap(addition, comb2)
mp.close()
mp.join()