def tokenify(cmd, token=None):
    if token is not None:
        cmd['token'] = token
    return cmd
If token is not None Then assign token to 'token' key of dict cmd and return cmd
dataset/ETHPy150Open saltstack/halite/halite/server_bottle.py/tokenify