Replaced libsvm-python with scikit-learn in requirements.
Use low-level libsvm.fit() function from scikit-learn.
Fixed input datatypes and contiguity.