Replace numpy read with struct read.