add get_attribute and __getitem__ to Tag