How To Write Binary Search In Python