def METHOD_NAME(self):
    token = None
    try:
        with open(self.strava_token) as f:
            token = f.readline()
    except:
        pass
    if token is None or token.strip() == '' :
        if self.email and self.password:
            values = { 'email' : self.email, 'password' : self.password }
            result = self.get_web_data(LOGIN_URL, values, "Validating user...")
            token = result['token']
        else:
            raise ConfigError("Username or password missing")
        try:
            with open(self.strava_token, 'w') as f:
                f.write(token)
        except:
            # didn't write token but that's ok, get another next time...
            pass
    return token 