def KindPathFromKey(key):
 path = key.to_path()
 kinds = []
 is_kind = True
 for item in path:
  if is_kind:
   kinds.append(item)
  is_kind = (not is_kind)
 kind_path = '/'.join(kinds)
 return kind_path

def KindPathFromKey ( key ) : path = key . to_path ( ) kinds = [ ] is_kind = True for item in path : if is_kind : kinds . append ( item ) is_kind = ( not is_kind ) kind_path = '/' . join ( kinds ) return kind_path
return kinds path as /-delimited string for a particular key .