Define token in base.py instead of local.py