Convert Multiple Lines To Single Line Python