UPDATING: simplify py311->py312 rename with pkg set -p
Replace the shell loop with a single pkg set -p -n command.