Consolidate Python Messages to use SerializedPyObj (#34491)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34491
Differential Revision: D20347467
Test Plan: Imported from OSS
Pulled By: mrshenli
fbshipit-source-id: efae4111d961f3a528cede77c863fb049cda9029