use assert in user.py to check client != None