efficiency: use single list comprehensions

- Addresses Zhihao's comments
- the unpacking from the payload is now pythonic.
    block_id, offset = mapping
- use single list comprehensions for setting both offset and blockid in
  a list of lists