from multiprocessing import Process


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