Fix issue #4374: Pickle tests fail w/o _pickle extension.

Add an initialization check to mimic the interface of _pickle.
1 file changed