itertools.product insted of nested for