nanshe/nanshe_learner.py: Now, makes sure that the JobTemplate instances constructed are deleted so as to avoid memory leaks.