debugging_tools: Specified stream to be sys.stderr.
nanshe_learner: Changed debug output so that it allows overwriting old results.