Pickling intervals

I’d like to be able to save a game’s state (including any intervals in progress) but I can only pickle python objects, not C++ objects. I’ve heard that panda has some kind of serialization built in, but a search for serialize or pickle returned no results in the manual. Does anyone know how to do this?

I once wrote a wrapper class for VBase3 and the like that used getstate/setstate to pickle the VBase3. I got a few hints from this thread:
discourse.panda3d.org/viewtopic … ght=pickle

Perhaps something similar can work for intervals.