Python Read Large Binary Search Algorithm