Python Check If Variable Is Dataframe