Fixes to make test_mmap.py pass unit tests in the py3k-struni branch. Moves the interface from being string based to being bytes based. This patch also includes changes to io.py and associated unit tests that allow flush() to be called on closed files.