import multiprocessing if __name__ == '__main__': manager = multiprocessing.Manager() d = manager.dict() import json json.dumps(d.copy())