code: def from_code_array(self):
          
  
          for key in self._section2writer:
              self.pys_file.write(key)
              self._section2writer[key]()
  
              try:
                  if self.pys_file.aborted:
                      break
              except AttributeError:
                  # pys_file is not opened via fileio.BZAopen
                  pass
  
          if config["font_save_enabled"]:
              # Clean up fonts used info
              self.fonts_used = []
docs: Replaces everything in pys_file from code_array