Implementing Binary Search In Python