import threading


def spawn(function, *args, **kwargs):
    """Spawns a daemonized thread.`"""
    thread = threading.Thread(target=function, args=args, kwargs=kwargs)
    thread.daemon = True
    thread.start()
    return thread