code: def _normalize_stack(graphobjs):
      
      for operands, operator in graphobjs:
          operator = str(operator)
          if re.match(r'Q*q+$', operator):  # Zero or more Q, one or more q
              for char in operator:  # Split into individual
                  yield ([], char)  # Yield individual
          else:
              yield (operands, operator)
docs: Convert runs of qQ's in the stack into single graphobjs