Perhaps something like this:
lines = (line1, line2, line3) target.write("{lines[0]}{newline}{lines[1]}{newline}{lines[2]}{newline}".format(lines=lines, newline="\n"))Though I am certain there are more elegant and optimal solutions :)