<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def login(self, user, passwd):
        '''Logs the user into SecurityCenter and stores the needed token and cookies.'''
        resp = self.post('token', json={'username': user, 'password': passwd})
        self._token = resp.json()['response']['token']