I am using windows 10 and vim 8.0 64bit.
Here is the screenshot:
I am totally sure it is something related to difference between python 2 and python3.
Actually, no errors within python 2.
But in case of python3, "".join(lines) should be the correct way.