code: def replace_label(self, oldLabel, newLabel):
          
          if oldLabel == newLabel:
              return
  
          tmp = re.compile(r'\b' + oldLabel + r'\b')
          last = 0
          l = len(newLabel)
          while True:
              match = tmp.search(self.asm[last:])
              if not match:
                  break
  
              txt = self.asm
              self.asm = txt[:last + match.start()] + newLabel + txt[last + match.end():]
              last += match.start() + l
docs: Replaces old label with a new one