def set_all_attribute_values(self, value):
for attribute_name, type_instance in inspect.getmembers(self):<EOL><INDENT>if attribute_name.startswith('<STR_LIT>') or inspect.ismethod(type_instance):<EOL><INDENT>continue<EOL><DEDENT>if isinstance(type_instance, bool):<EOL><INDENT>self.__dict__[attribute_name] = value<EOL><DEDENT>elif isinstance(type_instance, self.__class__):<EOL><INDENT>type_instance.set_all_attribute_values(value)<EOL><DEDENT><DEDENT>
sets all the attribute values to the value and propagate to any children