PySerial not stable

The python code reads the alert file off the server which always will exist. The Arduino code is printing parts of the string "sendVal" with the following code:

  if (length(tempC) < 3){
    //Serial.println("length 2"); 
    Serial.print(sendVal[0]); 
    Serial.print(sendVal[1]);
    Serial.println(sendVal[2]); 
   
  }
  
  else if (length(tempC) == 3){
    Serial.println("Length 3"); 
    Serial.println(tempC); 
  }