def background(f):
    """call a function in a simple thread, to prevent blocking"""
    t = Thread(target=f)
    t.start()
    return t
call a function in a simple thread, to prevent blocking
angrmanagement/vendor/qtconsole/mainwindow.py