fix in stock entry.py -- dictionary size should not change when looping