Browsing: binary search in python