Fixed bad variable reference in client/api.py