def deref_tag(tag):
 while True:
  try:
   tag = tag.object
  except AttributeError:
   break
 return tag

def deref_tag ( tag ) : while True : try : tag = tag . object except AttributeError : break return tag
recursively dereference a tag and return the resulting object .