Iterative Binary Search Code In Python