Modified client.py to be secure.