pretty_str function to print results in python tester

This is all just so that when printing strings they get surrounded by "", mostly so that if the method returns an empty string it doesn't look the same as if there was no result. Or if you return 123 instead of "123", whilst python is dynamically typed, TC results aren't.