human
Complete the below
def deterministicReactorThreads():

    ''''Create a deterministic L{IReactorThreads}
    @return: a 2-tuple consisting of an L{IReactorThreads}-like object and a
    0-argument callable that will perform one unit of work invoked via that
    object\'s C{callFromThread} method.'
    '''

What is a the Python program you requested?
assistant
#Here is the Python program you requested.
    (worker, doer) = createMemoryWorker()
    class CFT(object, ):
        def callFromThread(self, f, *a, **k):
            worker.do((lambda : f(*a, **k)))
    return (CFT(), doer)