Updated client.py. Added server communication.