Update bh_core.py

-Thread reload fix