Use Eval() in thread-test.py script.
Make function static.