Make the python wrapping work with VTK 5.

With VTK 5, only the classes that are derived from vtkObject are wrapped.