Add graph-based support to Python objects.