Fix mmap to match behaviour on py3

Eurgh ... ints from bytes