code: def _to_gen_(iterable):
      
      from collections import Iterable
  
      for elm in iterable:
          if isinstance(elm, Iterable) and not isinstance(elm, (str, bytes)):
              yield from flatten(elm)
          else: yield elm
docs: Recursively iterate lists and tuples