def _analyze_gens(gens):
 if ((len(gens) == 1) and hasattr(gens[0], '__iter__')):
  return tuple(gens[0])
 else:
  return tuple(gens)

def _analyze_gens ( gens ) : if ( ( len ( gens ) == 1 ) and hasattr ( gens [ 0 ] , '__iter__' ) ) : return tuple ( gens [ 0 ] ) else : return tuple ( gens )
support for passing generators as *gens and [gens] .