def getUnpackedLoops(loops):
 if (len(loops) == 1):
  firstLoop = loops[0]
  if (firstLoop.__class__ == list):
   return firstLoop
 return loops

def getUnpackedLoops ( loops ) : if ( len ( loops ) == 1 ) : firstLoop = loops [ 0 ] if ( firstLoop . __class__ == list ) : return firstLoop return loops
get unpacked loops .