A Search Algorithm Implementation In Python Iteration