is there a function in python which generates all the strings of length n over a given alphabet?,"[''.join(i) for i in itertools.product('ab', repeat=4)]"