wip: refactor protocol handling

2 jobs for client-proto-fix in 1 minute and 21 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Test
passed #465575
flake8

00:00:50

passed #465576
test_python3

00:01:21