'Encodes the block key before retrieving it from the structure to ensure it can
be a json dict key.'

@contract(block_key=BlockKey, returns='BlockData    |    None')
def _get_block_from_structure(self, structure, block_key):

    return structure['blocks'].get(block_key)
