objgraph is a module that lets you visually explore Python object graphs. You'll need graphviz if you want to draw the pretty graphs.