Extended pickling support for Python objects.
