removed test code from stock.py