I get this sometimes when PandaModules isn’t loaded anywhere. It seems you need the namespace to acces any of the pandac modules. So before any other imports in quad.py, try adding:
from pandac import PandaModules
PandaModules holds all of the names of pandac, so it might create a longer load time (and I am not sure how much ram it would use up).
Actually, you would want to import PandaModules as early as possible, so if you know where the firs imports are, put it there and it should be able to figure out the names after that.