SVM with Spatial Pyramid Kernel in Python