finish stockemu.py