Close mmap before closing file
Explicitly free python buffer using PyBuffer_Release on python 3
Merge pull request #3026 from amras1/fix-open-file-error

Fix Mac/Python 3 issue with too many open files in io.ascii