Python Check If Type Is Pandas Dataframe