class ForkedPdb(pdb.Pdb):
    """A Pdb subclass that may be used
    from a forked multiprocessing child
    """

def interaction(self, *args, **kwargs):
    pass
How to attach debugger to a python subproccess?