Just a reminder of an idea to refactor pyproto internals. See the idea in the comment from https://github.com/PyO3/pyo3/pull/1093#pullrequestreview-463806345