Close opened file in setup.py