code: def _macros2pys(self):
          
  
          macros = self.code_array.dict_grid.macros
          pys_macros = macros.encode("utf-8")
          self.pys_file.write(pys_macros)
docs: Writes macros to pys file
  
          Format: <macro code line>\n