def as_timed_client (cargo, fn):
    if client_is_idle(cargo[1]['start']):
        with_stream_write (cargo[0], bad_request+cr_lf)
        return ('done', cargo)
    else:
        return fn()
Enforce the idle_threshold condition here:
dataset/ETHPy150Open dpapathanasiou/intelligent-smtp-responder/server/smtp_server.py/as_timed_client