nanshe/nanshe_learner.py: Change input file to read only mode.