Modify GeneratePythonScriptTest.h to not use file re #7072

and in so doing eliminate use of the removed unwrap algorithm.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>