Close files after reading them in setup.py