#461: svm_json.py, add debugging code