added dumpPython feature