'Unpickle a ModuleSetting value'

def loads(self):

    result = None
    if self.value:
        try:
            result = pickle.loads(base64.b64decode(self.value))
        except pickle.PickleError:
            pass
    return result
