def _normalize_configuration_objs(configurations):
 for c in configurations:
  if (not hasattr(c, 'properties')):
   c.properties = []
  if hasattr(c, 'configurations'):
   if (not c.configurations):
    del c.configurations
   else:
    _normalize_configuration_objs(c.configurations)

def _normalize_configuration_objs ( configurations ) : for c in configurations : if ( not hasattr ( c , 'properties' ) ) : c . properties = [ ] if hasattr ( c , 'configurations' ) : if ( not c . configurations ) : del c . configurations else : _normalize_configuration_objs ( c . configurations )
the api will return an empty properties list for configurations without properties set .