How To Convert Multiple Lines Into Single Line In Python