def print_environ(environ=os.environ):
 keys = environ.keys()
 keys.sort()
 print
 print '<H3>Shell Environment:</H3>'
 print '<DL>'
 for key in keys:
  print '<DT>', escape(key), '<DD>', escape(environ[key])
 print '</DL>'
 print

def print_environ ( environ = os . environ ) : keys = environ . keys ( ) keys . sort ( ) print print '<H3>Shell Environment:</H3>' print '<DL>' for key in keys : print '<DT>' , escape ( key ) , '<DD>' , escape ( environ [ key ] ) print '</DL>' print
dump the shell environment as html .