refs #6485 Wikimaker changes for GeneratePythonScript