code: def iter_sprite_scripts(scratch):
          
          for script in scratch.stage.scripts:
              if not isinstance(script, kurt.Comment):
                  yield ('Stage', script)
          for sprite in scratch.sprites:
              for script in sprite.scripts:
                  if not isinstance(script, kurt.Comment):
                      yield (sprite.name, script)
docs: A generator for all scripts contained in a scratch file.
  
          yields stage scripts first, then scripts for each sprite