#785: svm_json.py, use 'islice()' in 'for' statement