def as_dict(self):
output_dictionary = dict()<EOL>for key, value in iter(self._key_map.items()):<EOL><INDENT>if isinstance(value, bool):<EOL><INDENT>output_dictionary[key] = value<EOL><DEDENT>elif isinstance(value, self.__class__):<EOL><INDENT>output_dictionary[key] = value.as_dict()<EOL><DEDENT><DEDENT>return output_dictionary<EOL>
turns attribute filter object into python dictionary