Replace struct with numpy for data unpacking.