How To Write A Binary Search In Python