Use open() so the file handler is closed OK
Use context manager to autoclose fd after creating mmap
Merge pull request #6 from adamgreig/close_fd

Use open() so the file handler is closed OK