nanshe/nanshe_learner.py: Spawn a daemon thread containing debugging_tools.memory_profiler inside main. This will set it up regardless of whether it is a block or master process.