Fixed bug in client.py

Accidental file overwrite in last version , left me with old verison of
the code. Fixed how i handle things on my end to prevent this in future.