Lightweight marshalling of Python 3 objects.