Flake8 fixes -- including not runnign flake8 over a backported file
Fixed typo in lru_cache.py; refs #21351.