fixed no close() in catfacts.py