Bringing in copy of dumpgenerator.py for future use.