propagated ClassEncoder processcorpus() and buildclasses() to Python API