def HTMLSchemaTree(schema, se_class, se_tree, se_oid, level):
 se_obj = schema.get_obj(se_class, se_oid)
 if (se_obj != None):
  print ('\n    <dt><strong>%s (%s)</strong></dt>\n    <dd>\n      %s\n    ' % (', '.join(se_obj.names), se_obj.oid, se_obj.desc))
 if se_tree[se_oid]:
  print '<dl>'
  for sub_se_oid in se_tree[se_oid]:
   HTMLSchemaTree(schema, se_class, se_tree, sub_se_oid, (level + 1))
  print '</dl>'
 print '</dd>'

def HTMLSchemaTree ( schema , se_class , se_tree , se_oid , level ) : se_obj = schema . get_obj ( se_class , se_oid ) if ( se_obj != None ) : print ( '\n    <dt><strong>%s (%s)</strong></dt>\n    <dd>\n      %s\n    ' % ( ', ' . join ( se_obj . names ) , se_obj . oid , se_obj . desc ) ) if se_tree [ se_oid ] : print '<dl>' for sub_se_oid in se_tree [ se_oid ] : HTMLSchemaTree ( schema , se_class , se_tree , sub_se_oid , ( level + 1 ) ) print '</dl>' print '</dd>'
html output for browser .