def print_roattributes(component, pretty): for name, value in model.getROAttributes(component).items(): # some are handled specifically if name in non_roattributes_names: continue print_roattribute(name, value, pretty)