with BytesIO(binary) as stream:
__a = np.load(stream)

withブロックを抜けるとcloseされるから安全