'infrequently used method to do some pre-processing of legacy terms'

def preprocess_data(self, ds):

    for base_class in self.__class__.mro():
        method = getattr(self, ('_preprocess_data_%s' % base_class.__name__.lower()), None)
        if method:
            return method(ds)
    return ds
