This fixes a bug in the contrib tracing script p2p_monitor.py. currently the script fails to read the msg_type of inbound and outbound messages, which is useful in the per-peer message view.
<details> <summary>Screenshot of p2p_monitor.py on master</summary>
</details>
<details> <summary>Screenshot of p2p_monitor.py on this branch</summary>
</details>