code: def format_hdr(self, delim=',', qu='"'):
          
          res = ''
          if self.header:
              for d in self.header:
                  res += qu + str(d) + qu + delim
          return res + '\n'
docs: Prepares the header in CSV format