[Python-checkins] Fix some scripts in the peg generator folder (GH-19853)