* update build_network_protocol_files.py to generate the mypy-compatible files (which were fixed already, but the generator script was not). Specifically, tests/util/test_network_protocol_files.py was changed manually. This makes it possible to rerun the generation without breaking mypy
* run build_network_protocol_files.py in CI to ensure its generated files are up-to-date
* fixup mypy exclusions