How To Check If A Value Is A String In Python