Python Check If Type Is String