'Restores the object from the state dict'

def __setstate__(self, state):

    self.access_token = state['access_token']
    self.prefetched_data = state['prefetched_data']
    self.expires = state['expires']
