Write multi-line-strings using the triple-quoted syntax

We only do this if we have a '>>>' in the string, as that probably
means it's a doctest, and that module will only pick up tests correctly
if they do use the triple-quoted syntax.