code: def _tag_cmds(self, *cmds):
          
          for (method, args) in cmds:
              tagged_cmd = [method, args, self._tag]
              self._tag = self._tag + 1
              yield tagged_cmd
docs: Yields tagged commands.