The ability to switch between impurity metrics is implemented in the underlying implementation. Interface it with python.