To check whether an object o is an instance of class A, use code example
Example: how to check if a variable in python is a specific data type
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True