Backported changes to rdp_classifier.py in PyCogent