In the Python console, when I type:
>>> \"\\n\".join([\'I\', \'would\', \'expect\', \'multiple\', \'lines\'])
Gives:
You need to print to get that output.
You should do
>>> x = "\n".join(['I', 'would', 'expect', 'multiple', 'lines'])
>>> x # this is the value, returned by the join() function
'I\nwould\nexpect\nmultiple\nlines'
>>> print x # this prints your string (the type of output you want)
I
would
expect
multiple
lines