I think this is the correct way to share heatMap between numpy and ctypes.