code: def WriteFile(self, printer):
          
          self.Validate()
          extended_descriptor.WritePythonFile(
              self.__file_descriptor, self.__package, self.__client_info.version,
              printer)
docs: Write the messages file to out.