updates to stock.py