python/lib/generator.py: remove most unstable objects