Here's an update of the script including a comparison between sent bytes and actually expected bytes, giving a warning if it does not mach (for example if data_structs have changed)
Edit: New file uploaded since it was a wrong version
Edit: New file uploaded since it was a wrong version

