Linear Search Python Code