Added doc tests for GeneratePythonScript

Refs #10482