import daemon
from spam import main_program

with daemon.DaemonContext():
   # main_program():

import daemon
from spam import main_program

with daemon.DaemonContext():
   # main_program():

# main_program():