Expose mmap cache to Python

The mmap cache is useful for speed and memory usage on Linux, and should be exposed to Python programmers.

I've included a test_mmap.py script for demonstration purposes.