def getStreamDill(name, process, shell): try: return dill.dumps(get_env(shell.user_ns)[name]) except: return None