Fix the python import/export data errors and add json import/export scripts.