code: def cleanup(self, output):
          
          # correct indentation
          output = output.replace('    ', '')\
                         .replace('\noption', '\n\toption')\
                         .replace('\nlist', '\n\tlist')
          # convert True to 1 and False to 0
          output = output.replace('True', '1')\
                         .replace('False', '0')
          # max 2 consecutive \n delimiters
          output = output.replace('\n\n\n', '\n\n')
          # if output is present
          # ensure it always ends with 1 new line
          if output.endswith('\n\n'):
              return output[0:-1]
          return output
docs: Generates consistent OpenWRT/LEDE UCI output