Update tool.py: add config class and token option

Signed-off-by: Michael LeCompte <michaelslec98@gmail.com>