code: def _check_and_convert_bools(self):
          
          replacements = {
              True: 'T',
              False: 'F',
          }
  
          for key in self.bools:
              if isinstance(self[key], bool):
                  self[key] = replacements[self[key]]
docs: Replace boolean variables by the characters 'F'/'T'