nodepath.setTag() to save class

You want setPythonTag() instead of setTag().

Note that when you do this sort of thing, setting a reference back to self in a NodePath referenced by self, you are creating a circular reference count, and that NodePath (and your class object) will never be destructed until you explicitly break that cycle, either by calling self.np.clearPythonTag() or by setting self.np = None (or both).

David