Modify numerous python algorithms re #9102

Also correct spelling in CopyLogs.cpp .

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