Use pickle file instead of dumpPython