rather than unquoting input and expected, add quoting to actual output

This is done for Python only (although we should probably
generalize it to the other languages as well): if the
input is quoted (starts with ' or "), then we assume that
the expected output is a string, and add single or double
quotes as appropriate.