Javascript Linear Search Program In Python