add BTrees example and add pybtree is_leaf method