mod stock.py