updated stock.py