Python Linear Search Algorithm