Add prefix to the beginning of selected lines in text.
textwrap.indent(text, prefix, predicate=None)
>>> s = 'hello\n\n \nworld'
>>> indent(s, ' ')
' hello\n\n \n world'
>>> print(indent(s, '+ ', lambda line: True))
+ hello
+
+
+ world