PyAny::is_instance_of::<T>(obj) is now equivalent to T::is_type_of(obj), and now returns bool instead of PyResult<bool>.
PyAny::is_instance_of::<T>(obj)
T::is_type_of(obj)
bool
PyResult<bool>