I am trying to figure out how to check if an object is of a specific class, it works just fine for classes like "str", "int" etc but not for custom class