create btree lab python implementation