Messing around with BDTs with python