finish stocksort.py