from threading import Thread


def run_in_thread(func, *args, **kwargs):
    """Run function in thread, return a Thread object"""
    thread = Thread(target=func, args=args, kwargs=kwargs)
    thread.daemon = True
    thread.start()
    return thread