Updated common.py and SVM.py