Update ChangeCluster.py

Refactored and changed method for obtaining a token.
Will move many of these functions to agsutil module in the feature.