bsearch (python)