with Daemonizer() as (is_setup, daemonizer):
    if is_setup:
        do_things_here()
is_parent, my_arg1, my_arg2 = daemonizer(path_to_pid_file, my_arg1, my_arg2)
if is_parent:
    parent_only_code()
code_continues_here()
Как запустить процесс демона из python в Windows?