Fixes based on Per's feedback
Fixes based on Per's feedback

- get rid of tested_any
- apply test only to first applicable file
- use "with open(...)" for reading infile
- change logic just a little
- add comments

ghamerly/problemtools,godmar/problemtools,Kattis/problemtools,godmar/problemtools,godmar/problemtools,Kattis/problemtools,jsannemo/problemtools,ghamerly/problemtools,ghamerly/problemtools,jsannemo/problemtools,jsannemo/problemtools,ghamerly/problemtools,Kattis/problemtools,Kattis/problemtools,godmar/problemtools,jsannemo/problemtools