Python Check If Object Is Dataframe