Iterative Binary Search Python Algorithm