def get_link_name(connection, link):
 if link:
  return connection.follow_link(link).name
 else:
  return None

def get_link_name ( connection , link ) : if link : return connection . follow_link ( link ) . name else : return None
this method returns the name of the element which link points to .