Update bst.py

working bst, not fast enough