P3K: avoid iteritems / itervalues when feasible
P3K: decode error message in svm wrapper