code: def cleanupmem(initial_memory):
      
      i = 0
      while i < len(initial_memory):
          tmp = initial_memory[i]
          match = RE_LABEL.match(tmp)
          if not match:
              i += 1
              continue
  
          if tmp.rstrip() == match.group():
              i += 1
              continue
  
          initial_memory[i] = tmp[match.end():]
          initial_memory.insert(i, match.group())
          i += 1
docs: Cleans up initial memory. Each label must be
      ALONE. Each instruction must have an space, etc...