python-scikit-learn: Fix unclosed file ResourceWarning.