This is badly named, I will change it to get_attr_filter()
It returns a dic {attr-name: attr-value} by which an object can be identified.