Update generate_token.py to work with current token server.