debugging client.py, error uploading files to server