Issue #13505: Make pickling of bytes object compatible with Python 2.

Initial patch by sbt.
5 files changed