actually close files instead of leaving it to the gc #5955
actually close files instead of leaving it to the gc #5955

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator