[python] How to read a text file into a string variable and strip newlines?