class Python_3_Unpickler(pickle.Unpickler):
    """Class for pickling objects from Python 3"""

def find_class(self, module, name):
    if module in REVERSE_MAPPING:
        module = REVERSE_MAPPING[module]
__import__(module)
mod = sys.modules[module]
klass = getattr(mod, name)
return klass

def loads(str):
    file = pickle.StringIO(str)
return Python_3_Unpickler(file).load()
Распаковка классов из Python 3 в Python 2