use iopub idle kernel to clear out old deferred
allow jsonifying dictionary recursively