Add "generate_token" call in client.py