This code is GPL'd. sgflib.py and typelib.py are from the GoTools project at http://gotools.sourceforge.net/ . Usage is like "./sgfsummary foo.sgf". This should eventually pop up a gnuplot window with your graph.