The gateway protocol (Communication.py) sends a library version on the open but never negotiates or checks a wire-protocol version. Add the minimal plumbing now so a future protocol change can be introduced without breaking compatibility.
Just to quickly add minimum code change for current version to detect a future protocol it does not support, fail with a clear error instead of an opaque parse or unpickle error.
The gateway protocol (Communication.py) sends a library version on the open but never negotiates or checks a wire-protocol version. Add the minimal plumbing now so a future protocol change can be introduced without breaking compatibility.
Just to quickly add minimum code change for current version to detect a future protocol it does not support, fail with a clear error instead of an opaque parse or unpickle error.