Very basic beginner question about class

I think it garbage collected the python class that had the animations stored. Animations are not stored in c++ and panda3d nodepath so it just vanished as soon as it went out of scope the class was garbage collected even before the game was started.