def topo_param_string(p, exclude=['print_level', 'name'], sep=", "):
   """
   Formats global parameters nicely for use in version control (for example).
   """
   strings = ['%s=%s' % (name,val) for (name,val) in p.get_param_values()
              if name not in exclude]
   return sep.join(strings)