code: def _pys2macros(self, line):
          
  
          if self.code_array.dict_grid.macros and \
             self.code_array.dict_grid.macros[-1] != "\n":
              # The last macro line does not end with \n
              # Therefore, if not new line is inserted, the codeis broken
              self.code_array.dict_grid.macros += "\n"
  
          self.code_array.dict_grid.macros += line.decode("utf-8")
docs: Updates macros in code_array