Moved client.py to avoid import problems