Close file handle in config.py when done