Check If Type Is String In Python