def as_dict(self):
output_dictionary = dict()<EOL>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>output_dictionary[attribute_name] = type_instance<EOL><DEDENT>elif isinstance(type_instance, self.__class__):<EOL><INDENT>output_dictionary[attribute_name] = type_instance.as_dict()<EOL><DEDENT><DEDENT>return output_dictionary<EOL>
turns attribute filter object into python dictionary