Binary Search In Python Using Function