fix buffered download (#24623)
fix buffered download (#24623)

* Use shutil to do a buffered copy from http response to file

* Fix flake8...

* Somehow flake8 still complains about unrelated files
LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack