Replace old type checking code with a call to isinstance.
For the old python wrappers, calling type() on any vtk object returned 'vtkobject', but for the new wrappers, type() always returns the type object for the object's class.
This change is needed before paraview will work with the new wrappers.