Create dumpgenerator.py

Copied from http://wikiteam.googlecode.com/svn/trunk/dumpgenerator.py