def _normalizeargs(sequence, output=None):
 if (output is None):
  output = []
 cls = sequence.__class__
 if ((InterfaceClass in cls.__mro__) or (Implements in cls.__mro__)):
  output.append(sequence)
 else:
  for v in sequence:
   _normalizeargs(v, output)
 return output

def _normalizeargs ( sequence , output = None ) : if ( output is None ) : output = [ ] cls = sequence . __class__ if ( ( InterfaceClass in cls . __mro__ ) or ( Implements in cls . __mro__ ) ) : output . append ( sequence ) else : for v in sequence : _normalizeargs ( v , output ) return output
normalize declaration arguments normalization arguments might contain declarions .