Check If Type Is Not String Python