Python-Spark implementation of LDClassifier