bsearch.py