def namer(): for length in count(1): for name in product(ascii_lowercase, repeat=length): yield ''.join(name)