'Get all data relevant to sync the session.
Args:
syncdata (dict): All syncdata values, based on
the keys given by self._attrs_to_sync.'

def get_sync_data(self):

    return dict(((key, value) for (key, value) in self.__dict__.items() if (key in self._attrs_to_sync)))
