Get __name__ for objects in the attributes

Fix #8