code: def outitem(title, elems, indent=4):
      
      out(title)
      max_key_len = max(len(key) for key, _ in elems) + 1
      for key, val in elems:
          key_spaced = ('%s:' % key).ljust(max_key_len)
          out('%s%s %s' % (indent * ' ', key_spaced, val))
      out()
docs: Output formatted as list item.