Python wrapped code from Gall et. al. Random Forest implementation.