Linear Search Code In Python