Size balanced tree in python and python wrapper of sbt in C.