'Update the session dictionary, and occasionally run
action_<arg> function.'

def load_session(self, data):

    self.update(data)
    for (module_argument, value) in data.items():
        action_name = ('action_%s' % module_argument.replace('.', '_'))
        if hasattr(self, action_name):
            action_func = getattr(self, action_name)
            if hasattr(action_func, '__call__'):
                action_func(module_argument, value)
