Update user_client.py

Fixes #77
Reformat - ternary !
Merge pull request #78 from PunKeel/patch-1

Update user_client.py